home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / HYPERCAR / SYSENV__ / SYSENVIR.DOC < prev   
Text File  |  1988-11-24  |  4KB  |  106 lines

  1. SysEnvirons XFCN for HyperCard - 11/20/88
  2. Copyright 1988 by Sam Thornton, PO Box 123, Fairfield NE 68938
  3. Some portions Copyright by Symantec and Apple.
  4.  
  5. May be copied and distributed for personal use without charge only, except for nominal distribution fees. For commercial use or distribution, contact the author.
  6.  
  7. Provided as a RESEDIT file.  Use RESEDIT or any other resource copying utility to install into HyperCard.  Install in Home stack for universal access.
  8.  
  9. An implementation of the Macintosh SysEnvirons info that speaks English as a first language.
  10.  
  11. SysEnvirons allows you to pinpoint the kind of hardware environment in which your stack will be running.  Nice if you plan to distribute a stack to a large number of users who probably will have a wide variety of setups, requiring you to juggle some of your scripts.  Returns the following information:
  12.  
  13.     AppleTalk (off/on and version)
  14.     ColorQuickDraw availability
  15.     Presence of fast math board
  16.     Keyboard version installed
  17.     The model Macintosh in use
  18.     The amount of memory installed
  19.     The CPU version number
  20.     The System version number
  21.     Version number of System SysEnvirons
  22.  
  23. Syntax:
  24.             get SysEnvirons( < keyword > )
  25.       
  26.                        SAMPLE SCRIPT:
  27.  
  28. if SysEnvirons("AppleTalk") is "not installed" then
  29.    answer "Please turn on AppleTalk before proceeding."
  30. end if
  31.  
  32. Use the following keywords to obtain the indicated returns: (we're not case-sensitive here but make sure you include the quotes around keywords or put them into a variable)
  33.  
  34. get SysEnvirons("AppleTalk") 
  35.          Returns the version number of
  36.         AppleTalk currently installed, or
  37.         "not installed".
  38.  
  39. get SysEnvirons("ColorQuickDraw") 
  40.          Returns "installed" or "not installed".
  41.  
  42. get SysEnvirons("FPU")
  43.          Checks for presence of 68881
  44.          fast math board.
  45.          Returns "installed" or "not installed".
  46.          NOTE that 3rd party boards may not
  47.          show up here.
  48.  
  49. get SysEnvirons("KeyBoard")
  50.           Returns the kind of keyboard installed
  51.           (one of the followng):
  52.          Ñ "Macintosh Plus Keyboard
  53.              with keypad" (NOTE: may register
  54.              as "Macintosh Plus Keyboard")
  55.          Ñ "Macintosh Keyboard"
  56.          Ñ "Macintosh Keyboard with keypad"
  57.          Ñ "Macintosh Plus Keyboard"
  58.          Ñ "Apple Extended Keyboard"
  59.          Ñ "ADB Keyboard"
  60.          Ñ "Unknown" (may be a new version
  61.              or 3rd party keyboard).
  62.  
  63. get SysEnvirons("Machine")
  64.          Returns the model Macintosh in use
  65.          (one of the following):
  66.          Ñ "Macintosh 512KE"
  67.          Ñ "Macintosh Plus"
  68.          Ñ "Macintosh SE"
  69.          Ñ "Macintosh II"
  70.          Ñ "Macintosh 64K"
  71.          Ñ "Macintosh XL"
  72.          Ñ "Unknown" (probably a new model)
  73.  
  74. get SysEnvirons("Memory")
  75.          Returns the size, in KB, of the memory
  76.          currently installed, e.g. '1024' for
  77.          a 1 MG Mac, '2048' for a 2 MG Mac.
  78.          NOTE that this is not currently (11/88)
  79.          a true SysEnvirons return, but is
  80.          obtained from the MemTop global.
  81.  
  82. get SysEnvirons("Processor")
  83.           Returns the CPU model installed
  84.           (one of the following):
  85.           Ñ "68000"
  86.           Ñ "68010"
  87.           Ñ "68020"
  88.           Ñ "Unknown" (probably a newer chip)
  89.  
  90. get SysEnvirons("System")
  91.           Returns the version number of System
  92.           software installed, e.g., "6.0.2".
  93.           NOTE that System versions before 4.1
  94.           are not supported. If one of these older
  95.           Systems is installed, "Unknown" is
  96.           returned.
  97.  
  98. get SysEnvirons("Version")
  99.           Returns the version number of the
  100.           System SysEnvirons installed (NOT
  101.           this XFCN version).
  102.  
  103. GEnie: S.THORNTON5
  104. Compuserve: 71750,667
  105.  
  106.